export default {
  namespaced: true,
  state: {
    // 当前订单数据
    currentOrder: {
      id: 1,
      code: 2434343, // 订单号 独一无二的
      items: [
        {
          id: 790410,
          minPrice: 200,
          name: '真空玫瑰花',
          num: 1,
          pic: 'https://dcdn.it120.cc/2021/03/23/2bfb884b-049d-4b37-8c35-f418ac03d65d.jpg'
        },
        {
          id: 790411,
          minPrice: 300,
          name: '真空玫瑰花2',
          num: 1,
          pic: 'https://dcdn.it120.cc/2021/03/23/2bfb884b-049d-4b37-8c35-f418ac03d65d.jpg'
        }
      ],
      total: 400
    },
    orderContact: { // 收货人
      id: 1,
      name: '小明',
      tel: 15698760987,
      address: '安徽省合肥市包河区东方广场b座12a'
    }
  },
  mutations: {
    set_order_contact (state, contact) {
      // 设置当前订单联系人
      state.orderContact = contact
    }
  }
}
